﻿<%@ Page Title="Dodawanie" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="dodaj.aspx.cs" Inherits="WebApplication6.About" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Dodawanie kategori i produktu&nbsp;<asp:ScriptManager ID="ScriptManager1" 
            runat="server">
        </asp:ScriptManager>
&nbsp;<asp:WebPartManager ID="WebPartManager1" runat="server">
        <Personalization Enabled="false"/> 
        </asp:WebPartManager>

    <table>
     <tr>
     <td>
        <asp:WebPartZone ID="WebPartZone1" runat="server" BorderColor="#CCCCCC" 
            Font-Names="Verdana" Padding="6">
            <ZoneTemplate>
                <asp:Panel ID="Panel1" runat="server" Width="340px" title ="Dodaj Kategorie">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                      
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="dodaj" />
                </asp:Panel>
            </ZoneTemplate>
            <MenuLabelHoverStyle ForeColor="#D1DDF1" />
            <MenuLabelStyle ForeColor="White" />
            <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" 
                Font-Names="Verdana" Font-Size="0.6em" />
            <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" 
                BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
            <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                ForeColor="White" />
            <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
            <EmptyZoneTextStyle Font-Size="0.8em" />
            <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
            <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" 
                ForeColor="#333333" />
            <PartStyle Font-Size="0.8em" ForeColor="#333333" />
            <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" 
                ForeColor="White" />
        </asp:WebPartZone>
        </td>
        <td>  </td>
        <td>
            <asp:WebPartZone ID="WebPartZone3" runat="server" BorderColor="#CCCCCC" 
                Font-Names="Verdana" Padding="6">
                <ZoneTemplate>
                    <asp:Panel ID="Panel3" runat="server" title="Edycja kategorii">
                        Nazwa kategorii
                        <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="DropDownList2_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        Nowa nazwa kategorii
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <br />
                        <asp:Button ID="Button3" runat="server" Text="Zmień" onclick="Button3_Click" />
                          &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button4" runat="server" Text="Usuń wraz z produktami" 
                            onclick="Button4_Click" />
                    </asp:Panel>
                </ZoneTemplate>
                <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                <MenuLabelStyle ForeColor="White" />
                <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" 
                    Font-Names="Verdana" Font-Size="0.6em" />
                <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" 
                    BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
                <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                    ForeColor="White" />
                <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                <EmptyZoneTextStyle Font-Size="0.8em" />
                <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" 
                    ForeColor="#333333" />
                <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" 
                    ForeColor="White" />
               
            </asp:WebPartZone>  </td>
       </tr>

    <tr>
    <td>
        <asp:WebPartZone ID="WebPartZone2" runat="server" Height="142px" Width="268px" 
            BorderColor="#CCCCCC" Font-Names="Verdana" Padding="6">
            <ZoneTemplate>
                <asp:Panel ID="Panel2" runat="server" style="text-align: right" Width="438px" title ="Dodaj produkt">
                    Nazwa kategorii
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                        ContextTypeName="WebApplication6.DataClasses1DataContext" EntityTypeName="" 
                        Select="new (nazwa)" TableName="kategories">
                    </asp:LinqDataSource>
                    <br />
                    Nazwa Produktu&nbsp;&nbsp;
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    <br />
                    &nbsp;Kcal (na 100g/ml)
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                           <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" 
                            runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox3">
                            </ajaxToolkit:FilteredTextBoxExtender>
                    <br />
                    Węglowodory
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                                            <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server"
                                            TargetControlID="TextBox4"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    Tłuszcze
                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                            TargetControlID="TextBox5"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    Białka
                    <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                                            TargetControlID="TextBox6"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Dodaj" />
                </asp:Panel>
            </ZoneTemplate>
            <MenuLabelHoverStyle ForeColor="#D1DDF1" />
            <MenuLabelStyle ForeColor="White" />
            <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" 
                Font-Names="Verdana" Font-Size="0.6em" />
            <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" 
                BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
            <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                ForeColor="White" />
            <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
            <EmptyZoneTextStyle Font-Size="0.8em" />
            <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
            <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" 
                ForeColor="#333333" />
            <PartStyle Font-Size="0.8em" ForeColor="#333333" />
            <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" 
                ForeColor="White" />
        </asp:WebPartZone>
        </td>
        <td> </td>  
        <td>
            <asp:WebPartZone ID="WebPartZone4" runat="server" BorderColor="#CCCCCC" 
                Font-Names="Verdana" Padding="6">
                <ZoneTemplate>
                    <asp:Panel ID="Panel4" runat="server" Title="Edycja produktu" 
                        style="text-align: right">
                     Nazwa kategorii
                    <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="DropDownList3_SelectedIndexChanged">
                    </asp:DropDownList>
                        <br />
                        NAZWA PRODUKTU&nbsp;<asp:DropDownList ID="DropDownList4" runat="server" 
                            onselectedindexchanged="DropDownList4_SelectedIndexChanged" 
                            AutoPostBack="True">
                        </asp:DropDownList>
                        &nbsp;<asp:LinqDataSource ID="LinqDataSource2" runat="server" 
                        ContextTypeName="WebApplication6.DataClasses1DataContext" EntityTypeName="" 
                        Select="new (nazwa)" TableName="kategories">
                    </asp:LinqDataSource>
                        <asp:DropDownList ID="DropDownList5" runat="server">
                        </asp:DropDownList>
                    <br />
                        Nowa nazwa Produktu&nbsp;&nbsp;
                    <asp:TextBox ID="TextBox8" runat="server" style="text-align: right"></asp:TextBox>
                    <br />
                    &nbsp;Kcal (na 100g/ml)
                    <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                           <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" 
                            runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox9">
                            </ajaxToolkit:FilteredTextBoxExtender>
                    <br />
                    Węglowodory
                    <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server"
                                            TargetControlID="TextBox10"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    Tłuszcze
                    <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server"
                                            TargetControlID="TextBox11"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    Białka
                    <asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server"
                                            TargetControlID="TextBox12"         
                                            FilterType="Custom, Numbers"
                                            ValidChars=",." />
                    <br />
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button5" runat="server"  Text="aktualizuj" 
                            onclick="Button5_Click" />
                        <asp:Button ID="Button6" runat="server" onclick="Button6_Click" Text="Usuń" />
                    </asp:Panel>
                </ZoneTemplate>
                <MenuLabelHoverStyle ForeColor="#D1DDF1" />
                <MenuLabelStyle ForeColor="White" />
                <MenuPopupStyle BackColor="#507CD1" BorderColor="#CCCCCC" BorderWidth="1px" 
                    Font-Names="Verdana" Font-Size="0.6em" />
                <MenuVerbHoverStyle BackColor="#EFF3FB" BorderColor="#CCCCCC" 
                    BorderStyle="Solid" BorderWidth="1px" ForeColor="#333333" />
                <MenuVerbStyle BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                    ForeColor="White" />
                <TitleBarVerbStyle Font-Size="0.6em" Font-Underline="False" ForeColor="White" />
                <EmptyZoneTextStyle Font-Size="0.8em" />
                <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                <PartChromeStyle BackColor="#EFF3FB" BorderColor="#D1DDF1" Font-Names="Verdana" 
                    ForeColor="#333333" />
                <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                <PartTitleStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.8em" 
                    ForeColor="White" />
            </asp:WebPartZone>
             </td>
   </tr>
        </table>
        </h2>

    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>
